<%-------------------------------------------------------------------
 * 页面名称：drawToSelf_2.jsp
 * 功能描述：账户提现确认页面
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8" isELIgnored="false"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script language="javascript" src="<%=path%>/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/PassGuardCtrl.js"></script>
<script type='text/javascript' src='<%=path%>/js/demo.js'></script>
<script language="JavaScript" type="text/JavaScript">
function dosubmit(){
	SubmitForm1();
	if(pgeditor.pwdLength()==0){
	     alert("支付密码不能为空");
		 _$("_ocx_password").focus();
		 return false;
	}
	
	var PwdResult=pgeditor.pwdResult();
	getObj('password').value=PwdResult;
	
	if(checkNecessaryInput(document.forms[0])){
   		document.forms[0].submit();
   	}
}
function doback(){
	document.forms[0].step.value = "0";
	document.forms[0].submit();
}

window.onload = function(){	 
	   pgeditor.pgInitialize();//初始化控件
}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				账户提现
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1" class="blueborder">

					<html:form action="drawToSelf" method="post">
						<html:hidden property="step" />
						<html:hidden property="actionType" />
						<html:hidden property="accountBankId" />
						<!-- 提现子账户 -->
						<tr>
							<td width="50%" align="right" height="35px;">
								提现子账户：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<bean:write name="subAccount" property="accountName" />
								<html:hidden property="subAccountId" />
							</td>
						</tr>
						<!-- 提现子账户当前余额-->
						<tr>
							<td width="50%" align="right" height="35px;">
								提现子账户当前余额：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<span class="orangefont14b"><ad:FormatPrase>
										<bean:write name="subAccount"
											property="accountBalance.balance" />
									</ad:FormatPrase> </span>元
							</td>
						</tr>
						<!--提现金额-->
						<tr>
							<td width="50%" align="right" height="35px;">
								提现金额：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<span class="orangefont14b"> <bean:parameter id="amount"
										name="amount" /> <ad:FormatPrase>
										<bean:write name="amount" />
									</ad:FormatPrase> </span> 元
								<html:hidden property="amount" />
							</td>
						</tr>
						<!-- 手续费用-->
						<tr>
							<td width="50%" align="right" height="35px;">
								手续费用：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<span class="orangefont14b"><logic:present
										parameter="fee">
										<bean:parameter id="fee" name="fee" />
									</logic:present> <ad:FormatPrase>
										<bean:write name="fee" />
									</ad:FormatPrase> </span>元
								<input type="hidden" name="fee" value="<bean:write name="fee"/>" />
							</td>
						</tr>
						<!--收款人姓名-->
						<tr>
							<td width="50%" align="right" height="35px;">
								收款人姓名：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<bean:write name="subAccount" property="account.name" />
							</td>
						</tr>
						<!--收款银行账户名称-->
						<%--<tr>
							<td width="50%" align="right" height="35px;">
								收款银行账户名称：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<bean:write name="accountBank" property="accountName" />
							</td>
						</tr>
						--%><!--收款银行账户账号-->
						<tr>
							<td width="50%" align="right" height="35px;">
								收款银行账户账号：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<bean:write name="accountBank" property="accountId" />
							</td>
						</tr>
						<!--资金用途-->
						<tr>
							<td width="50%" align="right" height="35px;">
								资金用途：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<html:hidden property="purpose" write="true" />
							</td>
						</tr>
						<!--备注-->
						<tr>
							<td width="50%" align="right" height="35px;">
								备注：
							</td>
							<td width="77%" class="fontgraydrop14" height="35px;">
								<html:hidden property="remark" write="true" />
							</td>
						</tr>
						
							<tr>
								<td width="50%" align="right" height="35px;">
									请输入支付密码：
									<span class="orang12b">*</span>
								</td>
								<td width="77%" class="fontgraydrop14" height="35px;">
									<script type="text/javascript">pgeditor.generate()</script>
									<input id="password" name="password" type="hidden">
										
								</td>
							</tr>
					</html:form>
				</table>
				<table width="100%" height="55" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="center" colspan="2">
							<font color="#FF0000"><html:errors /> </font>
						</td>
					</tr>
					<tr>
						<td width="37%" align="center">
							&nbsp;
						</td>
						<td width="65%">
							<input type="button" name="previous" value="上一步"
								class="button_style" onclick="history.go(-1);"
								style="margin-right:10px;" />
							<input type="button" name="sure" value="确 定" class="button_style"
								onclick="dosubmit();" style="margin-right:20px;" />
						</td>
					</tr>
					<tr>
						<td colspan="2" align="right">
				<table width="100%" border="0" align="center" cellpadding="7"
										cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
										<tr>
											<td bgcolor="#fffdf5">
												<table width="100%" border="0" cellpadding="3"
													cellspacing="0">
													<tr>
														<td width="3%" height="25" valign="top"
															style="border-bottom:1px solid #ccc;"></td>
														<td width="97%" align="left" class="red12b"
															style="border-bottom:1px solid #ccc;">
															特别提醒
														</td>
													</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
												<span class="lan">
													请确认您的提现信息，正确请
													<logic:equal name="personAccount" value="true">输入支付密码，并</logic:equal>
													点击确定提现，需要修改请返回上一步！
													</span>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
